<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template format_date_parser</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#doxygen.date_time_reference.format__date__parser_8hpp" title="Header &lt;boost/date_time/format_date_parser.hpp&gt;">
<link rel="prev" href="find__match_8hpp_1aa79c9d612482f40d07e4d95d3054a900.html" title="Function template find_match">
<link rel="next" href="format__date__parser_8hpp_1a17bfda183833296b776585fe1d1bffda.html" title="Function template fixed_string_to_int">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="find__match_8hpp_1aa79c9d612482f40d07e4d95d3054a900.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.format__date__parser_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="format__date__parser_8hpp_1a17bfda183833296b776585fe1d1bffda.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template format_date_parser</span></h2>
<p>boost::date_time::format_date_parser — Class with generic date parsing using a format string. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#doxygen.date_time_reference.format__date__parser_8hpp" title="Header &lt;boost/date_time/format_date_parser.hpp&gt;">boost/date_time/format_date_parser.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> date_type<span class="special">,</span> <span class="keyword">typename</span> charT<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html" title="Class template format_date_parser">format_date_parser</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span>                <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1af04148f4c491ffbf7a6d7ba57642737a"></a><span class="identifier">string_type</span><span class="special">;</span>          
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istringstream</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span>         <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1af6552359bdf515944833ae87b6ef00cb"></a><span class="identifier">stringstream_type</span><span class="special">;</span>    
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span>         <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a19688a058c5e2ad230782ec35a48c040"></a><span class="identifier">stream_itr_type</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">string_type</span><span class="special">::</span><span class="identifier">const_iterator</span>               <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a72c19a45c23932633c8890e6c371562e"></a><span class="identifier">const_itr</span><span class="special">;</span>            
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">year_type</span>                      <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a454455a4b8add0c80ebd0c197bbc4446"></a><span class="identifier">year_type</span><span class="special">;</span>            
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">month_type</span>                     <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a86e9f1be3858a1c7061134be267b9021"></a><span class="identifier">month_type</span><span class="special">;</span>           
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">day_type</span>                       <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a6130e33fe3d7ff40cb2ab3f949c36ccc"></a><span class="identifier">day_type</span><span class="special">;</span>             
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">duration_type</span>                  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a6034393e244e90ca7f3d727c539a819c"></a><span class="identifier">duration_type</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">day_of_week_type</span>               <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ac3e838814bdfec997c4b43444769c8b6"></a><span class="identifier">day_of_week_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">day_of_year_type</span>               <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1aa53213ac862264408a0c7a513d2d864c"></a><span class="identifier">day_of_year_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1date__time_1_1string__parse__tree.html" title="Struct template string_parse_tree">string_parse_tree</a><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span>                <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a077505f9ebfc8768b9b18cc4b134aaa9"></a><span class="identifier">parse_tree_type</span><span class="special">;</span>      
  <span class="keyword">typedef</span> parse_tree_type::parse_match_result_type  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ace1e5b1a85dc45c3369b2255953f1e40"></a><span class="identifier">match_results</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a6c6783e51d41a803e967e8c49204b4eb"></a><span class="identifier">input_collection_type</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#id-1_3_11_15_3_27_2_1_1_17-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a631ed71e5a074e1aee161b2adf44153e"><span class="identifier">format_date_parser</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a1102f3b6bee3eac4ce1033d926199a88"><span class="identifier">format_date_parser</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a1f362991200d055e4d353ec5ec8e42f4"><span class="identifier">format_date_parser</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html" title="Class template format_date_parser">format_date_parser</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">string_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ac232527832c59c80fd8ea9368607a4b9"><span class="identifier">format</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a30e915c85af396ff6b97ddab2873d344"><span class="identifier">format</span></a><span class="special">(</span><span class="identifier">string_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1af7727852a01cdf2ece4a26bf58080e5a"><span class="identifier">short_month_names</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1aa705ce81e451421ce091325fae95e5be"><span class="identifier">long_month_names</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a134dc7a9747d6d075c36999641d28a7f"><span class="identifier">short_weekday_names</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a30d876d49a83ccf26ad2c4605047f9f8"><span class="identifier">long_weekday_names</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">date_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a273eb43363362ddefb39872f040d8214"><span class="identifier">parse_date</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="keyword">const</span> <a class="link" href="classboost_1_1date__time_1_1special__values__parser.html" title="Class template special_values_parser">special_values_parser</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">date_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1acac5e88858874ef6cc40bd58c6ebe64a"><span class="identifier">parse_date</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="keyword">const</span> <a class="link" href="classboost_1_1date__time_1_1special__values__parser.html" title="Class template special_values_parser">special_values_parser</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">date_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a8e4d58dea3ff010ff45997c2511927a5"><span class="identifier">parse_date</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">string_type</span><span class="special">,</span> 
                       <span class="keyword">const</span> <a class="link" href="classboost_1_1date__time_1_1special__values__parser.html" title="Class template special_values_parser">special_values_parser</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">month_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a43ab1896790c802c3b0c0200c18dda86"><span class="identifier">parse_month</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                         <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">string_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">month_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a6d3814b1355ef05061e975ccd7478fed"><span class="identifier">parse_month</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                         <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">string_type</span><span class="special">,</span> 
                         <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ace1e5b1a85dc45c3369b2255953f1e40">match_results</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">day_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a9284f122965e7e7b61e2ae42b3e85caa"><span class="identifier">parse_var_day_of_month</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                                  <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">day_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a7c8becd3ff310032b453416e7c996c05"><span class="identifier">parse_day_of_month</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                              <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">day_of_week_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1aba4c710b477039c611c3b391ce154325"><span class="identifier">parse_weekday</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">string_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">day_of_week_type</span> 
  <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a059a0f81150aaf4a41263d9a413e8a48"><span class="identifier">parse_weekday</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">string_type</span><span class="special">,</span> 
                <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ace1e5b1a85dc45c3369b2255953f1e40">match_results</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">year_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a7b29c92a4716b8c91f7e232b7adb3987"><span class="identifier">parse_year</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">string_type</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">year_type</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1aa2999f0170149a0c50ad2535d458e3f9"><span class="identifier">parse_year</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">string_type</span><span class="special">,</span> 
                       <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ace1e5b1a85dc45c3369b2255953f1e40">match_results</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.11.15.3.27.3.4"></a><h2>Description</h2>
<p>The following is the set of recognized format specifiers</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>a - Short weekday name</p></li>
<li class="listitem"><p>A - Long weekday name</p></li>
<li class="listitem"><p>b - Abbreviated month name</p></li>
<li class="listitem"><p>B - Full month name</p></li>
<li class="listitem"><p>d - Day of the month as decimal 01 to 31</p></li>
<li class="listitem"><p>j - Day of year as decimal from 001 to 366</p></li>
<li class="listitem"><p>m - Month name as a decimal 01 to 12</p></li>
<li class="listitem"><p>U - Week number 00 to 53 with first Sunday as the first day of week 1?</p></li>
<li class="listitem"><p>w - Weekday as decimal number 0 to 6 where Sunday == 0</p></li>
<li class="listitem"><p>W - Week number 00 to 53 where Monday is first day of week 1</p></li>
<li class="listitem"><p>x - facet default date representation</p></li>
<li class="listitem"><p>y - Year without the century - eg: 04 for 2004</p></li>
<li class="listitem"><p>Y - Year with century</p></li>
</ul></div>
<p>
</p>
<p>The weekday specifiers (a and A) do not add to the date construction, but they provide a way to skip over the weekday names for formats that provide them.</p>
<p>todo – Another interesting feature that this approach could provide is an option to fill in any missing fields with the current values from the clock. So if you have m-d the parser would detect the missing year value and fill it in using the clock.</p>
<p>todo – What to do with the x. x in the classic facet is just bad... </p>
<div class="refsect2">
<a name="id-1.3.11.15.3.27.3.4.6"></a><h3>
<a name="id-1_3_11_15_3_27_2_1_1_17-bb"></a><code class="computeroutput">format_date_parser</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a631ed71e5a074e1aee161b2adf44153e"></a><span class="identifier">format_date_parser</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> format_str<span class="special">,</span> 
                   <span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span> month_short_names<span class="special">,</span> 
                   <span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span> month_long_names<span class="special">,</span> 
                   <span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span> weekday_short_names<span class="special">,</span> 
                   <span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span> weekday_long_names<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a1102f3b6bee3eac4ce1033d926199a88"></a><span class="identifier">format_date_parser</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> format_str<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span> <span class="special">&amp;</span> locale<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a1f362991200d055e4d353ec5ec8e42f4"></a><span class="identifier">format_date_parser</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html" title="Class template format_date_parser">format_date_parser</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> fdp<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">string_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ac232527832c59c80fd8ea9368607a4b9"></a><span class="identifier">format</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a30e915c85af396ff6b97ddab2873d344"></a><span class="identifier">format</span><span class="special">(</span><span class="identifier">string_type</span> format_str<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1af7727852a01cdf2ece4a26bf58080e5a"></a><span class="identifier">short_month_names</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span> month_names<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1aa705ce81e451421ce091325fae95e5be"></a><span class="identifier">long_month_names</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span> month_names<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a134dc7a9747d6d075c36999641d28a7f"></a><span class="identifier">short_weekday_names</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span> weekday_names<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a30d876d49a83ccf26ad2c4605047f9f8"></a><span class="identifier">long_weekday_names</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">input_collection_type</span> <span class="special">&amp;</span> weekday_names<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">date_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a273eb43363362ddefb39872f040d8214"></a><span class="identifier">parse_date</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> value<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> format_str<span class="special">,</span> 
                     <span class="keyword">const</span> <a class="link" href="classboost_1_1date__time_1_1special__values__parser.html" title="Class template special_values_parser">special_values_parser</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sv_parser<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">date_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1acac5e88858874ef6cc40bd58c6ebe64a"></a><span class="identifier">parse_date</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
                     <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                     <span class="keyword">const</span> <a class="link" href="classboost_1_1date__time_1_1special__values__parser.html" title="Class template special_values_parser">special_values_parser</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sv_parser<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">date_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a8e4d58dea3ff010ff45997c2511927a5"></a><span class="identifier">parse_date</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
                     <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                     <span class="identifier">string_type</span> format_str<span class="special">,</span> 
                     <span class="keyword">const</span> <a class="link" href="classboost_1_1date__time_1_1special__values__parser.html" title="Class template special_values_parser">special_values_parser</a><span class="special">&lt;</span> <span class="identifier">date_type</span><span class="special">,</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sv_parser<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Of all the objects that the <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html" title="Class template format_date_parser">format_date_parser</a> can parse, only a date can be a special value. Therefore, only parse_date checks for special_values. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">month_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a43ab1896790c802c3b0c0200c18dda86"></a><span class="identifier">parse_month</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
                       <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                       <span class="identifier">string_type</span> format_str<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Throws bad_month if unable to parse. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">month_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a6d3814b1355ef05061e975ccd7478fed"></a><span class="identifier">parse_month</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
                       <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                       <span class="identifier">string_type</span> format_str<span class="special">,</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ace1e5b1a85dc45c3369b2255953f1e40">match_results</a> <span class="special">&amp;</span> mr<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Throws bad_month if unable to parse. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">day_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a9284f122965e7e7b61e2ae42b3e85caa"></a><span class="identifier">parse_var_day_of_month</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
                                <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Expects 1 or 2 digits 1-31. Throws bad_day_of_month if unable to parse. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">day_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a7c8becd3ff310032b453416e7c996c05"></a><span class="identifier">parse_day_of_month</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
                            <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Expects 2 digits 01-31. Throws bad_day_of_month if unable to parse. </li>
<li class="listitem"><pre class="literallayout"><span class="identifier">day_of_week_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1aba4c710b477039c611c3b391ce154325"></a><span class="identifier">parse_weekday</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
              <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
              <span class="identifier">string_type</span> format_str<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">day_of_week_type</span> 
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a059a0f81150aaf4a41263d9a413e8a48"></a><span class="identifier">parse_weekday</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
              <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
              <span class="identifier">string_type</span> format_str<span class="special">,</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ace1e5b1a85dc45c3369b2255953f1e40">match_results</a> <span class="special">&amp;</span> mr<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">year_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1a7b29c92a4716b8c91f7e232b7adb3987"></a><span class="identifier">parse_year</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
                     <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                     <span class="identifier">string_type</span> format_str<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>throws bad_year if unable to parse </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">year_type</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1aa2999f0170149a0c50ad2535d458e3f9"></a><span class="identifier">parse_year</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> sitr<span class="special">,</span> 
                     <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                     <span class="identifier">string_type</span> format_str<span class="special">,</span> <a class="link" href="classboost_1_1date__time_1_1format__date__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1format__date__parser_1ace1e5b1a85dc45c3369b2255953f1e40">match_results</a> <span class="special">&amp;</span> mr<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>throws bad_year if unable to parse </li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
    <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="find__match_8hpp_1aa79c9d612482f40d07e4d95d3054a900.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.format__date__parser_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="format__date__parser_8hpp_1a17bfda183833296b776585fe1d1bffda.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
